import Mock from 'mockjs'
/* 首页店铺列表 */
var data=Mock.mock({
    "list|122":[
        {
            "id|+1":1,
            "pic":"@image(80x80,@color)",
            "title":'@ctitle(10)',
            "yxl|1-1000":1,
            "km|1-30.1":1,
            "xm|30-60":1,
            "dm|60-100":1,
            "gm|100-200":1,
            "mj1|3-10":1,
            "mj2|10-30":1,
            "mj3|30-60":1,
        }
    ]
})
export default {data}
/* 首页店铺接口 */
Mock.mock('/list','get',()=>{
    return data
})

/* 单个店铺列表 */
var goodlist=Mock.mock({
    "list|6":[
        {
            "title|+1":['热销','优惠','三文鱼','刺身','鲍鱼','年货礼品'],
            "content|10":[
                {
                    "id|+1":1,
                    "name":'@ctitle(2,6)',
                    "pic":"@image(80x80,@color)",
                    "title":'@ctitle(10)',
                    "price|1-100":1,
                    "count":1
              } 
            ]
        }
    ]
})
/* 单个店铺接口 */
Mock.mock('/goodlist','get',()=>{
    return goodlist
})
/* 搜索数据 */
var  sslist=Mock.mock({
    "list|100":[
                {
                    "id|+1":1,
                    "pic":"@image(80x80,@color)",
                    "title":'@ctitle(10)',
                    "yxl|1-1000":1,
                    "km|1-30.1":1,
                    "price|1-100":1,
              } 
    ]
})
/* 单个店铺接口 */
Mock.mock('/sslist','get',()=>{
    return sslist
})